package com.ChenYaRou.www.po;

import java.time.LocalDateTime;

/**
 * @ClassName Message
 * @Description TODO
 * @Author 86183
 * @Date 2022/4/29 20:00
 * @Version 1.0
 **/
public class Message {
    private Integer id;
    private Integer shopId;
    private String content;
    private Integer senderId;
    private LocalDateTime leftTime;
    private Integer likes;
    private Integer parentId;
    private String state;

    public Message() {
    }

    public Message(Integer shopId, String content, Integer senderId,
                   LocalDateTime leftTime, Integer likes, Integer parentId, String state) {
        this.shopId = shopId;
        this.content = content;
        this.senderId = senderId;
        this.leftTime = leftTime;
        this.likes = likes;
        this.parentId = parentId;
        this.state = state;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", shopId=" + shopId +
                ", content='" + content + '\'' +
                ", senderId=" + senderId +
                ", leftTime=" + leftTime +
                ", likes=" + likes +
                ", parentId=" + parentId +
                ", state='" + state + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getSenderId() {
        return senderId;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }

    public LocalDateTime getLeftTime() {
        return leftTime;
    }

    public void setLeftTime(LocalDateTime leftTime) {
        this.leftTime = leftTime;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
